package com.wdcg.model.dao;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName= "BonusDescription")
public class BonusDescription {
	public static final String BONUS_DESCRIPTION_ID_COLUMN="bonusDescriptionID";

	@DatabaseField(id=true, columnName="bonusDescriptionID")
	private Integer id;
	
	@DatabaseField(columnName="description")
	private String description;
	
	@DatabaseField(columnName="name")
	private String name;
	
	@DatabaseField(foreign=true, foreignAutoRefresh=true, columnName=Bonus.BONUS_ID_COLUMN)
	private Bonus bonus;
	
	@DatabaseField(foreign=true, foreignAutoRefresh=false, columnName=PlayerLocale.LOCALE_ID_COLUMN)
	private PlayerLocale locale;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Bonus getBonus() {
		return bonus;
	}

	public void setBonus(Bonus bonus) {
		this.bonus = bonus;
	}

	public PlayerLocale getLocale() {
		return locale;
	}

	public void setLocale(PlayerLocale locale) {
		this.locale = locale;
	}

	@Override
	public String toString() {
		return "BonusDescription [id=" + id + ", description=" + description
				+ ", name=" + name + ", bonus=" + bonus + ", locale=" + locale
				+ "]";
	}
	
	
}
